// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
import {screenHeight, screenWidth, innerHeight, mainHeight} from './common/js/width_height_data'
import provice from './common/js/city'
import {toNewPage, toast} from './common/js/action'
//  eslint-disable-next-line
import {post, get, put, patch, deleteData, downloadImg} from './utils/http'
import * as apis from './utils/api.js'
// iconfont官方图标引入
import './assets/iconfont/iconfont.css'
// //导入移动端适配器
import 'lib-flexible/flexible'
// 导入md5
import md5 from 'js-md5'
import '../theme/index.css'
import ElementUI from 'element-ui'
// 引入cubeUI
import Cube from 'cube-ui'
import Video from 'video.js'
import 'video.js/dist/video-js.css'
Vue.use(Cube)
Vue.use(ElementUI, { size: 'small', zIndex: 3000 }) // 组件默认尺寸小尺寸，默认弹窗图层3000
// Vue.use(router)
// import './common/stylus/index.styl'
Vue.prototype.$video = Video
Vue.config.productionTip = false
Vue.prototype.$screenHeight = screenHeight
Vue.prototype.$screenWidth = screenWidth
Vue.prototype.$inerHeight = innerHeight
Vue.prototype.$mainHeight = mainHeight
Vue.prototype.toNewPage = toNewPage
Vue.prototype.$post = post
Vue.prototype.$get = get
Vue.prototype.$put = put
Vue.prototype.apis = apis
Vue.prototype.$md5 = md5
Vue.prototype.$toast = toast
Vue.prototype.$province = provice
/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  components: { App },
  template: '<App/>'
})
